<?php if ($this->pageCount): ?> 
<?php 
$arr = array();
if(!empty($this->title)){
	$arr['title'] = $this->title;
}
if(!empty($this->has_en) || $this->has_en === '0'){
	$arr['has_en'] = $this->has_en;
}
if(!empty($this->orderid)){
	$arr['orderid'] = $this->orderid;
}
if(!empty($this->statu) || $this->statu === '0'){
	$arr['statu'] = $this->statu;
}
if(!empty($this->ismemo) || $this->ismemo === '0'){
	$arr['is_memo'] = $this->ismemo;
}
if(!empty($this->infostock) || $this->infostock === '0'){
	$arr['info_stock'] = $this->infostock;
}
if(!empty($this->isadd) || $this->isadd === '0'){
	$arr['isadd'] = $this->isadd;
}
if(!empty($this->site)){
	$arr['site'] = $this->site;
}
if(!empty($this->sku)){
	$arr['sku'] = $this->sku;
}
if(!empty($this->starttime)){
	$arr['starttime'] = $this->starttime;
}
if(!empty($this->endtime)){
	$arr['endtime'] = $this->endtime;
}
?>
<nav>
    <ul class="pagination">
        <!-- Previous page link --> 
        <?php if (isset($this->previous)): ?> 
        <li>
            <a href="<?php echo $this->url(array_merge(array('page' => $this->previous),$arr)); ?>" aria-label="Previous">
                <span aria-hidden="true">&laquo;</span>
            </a> 
        </li>
        <?php else: ?>
        <li class="disabled">
            <a aria-label="Previous">
                <span aria-hidden="true">&laquo;</span>
            </a> 
        </li>
        <?php endif; ?> 
        
        <!-- Numbered page links -->
        <?php foreach ($this->pagesInRange as $page): ?>
            <?php if ($page != $this->current): ?> 
            <li><a href="<?php echo $this->url(array_merge(array('page' => $page),$arr)); ?>"><?php echo $page; ?></a></li>
            <?php else: ?> 
            <li class="active"><a><?php echo $page; ?></a></li>
            <?php endif; ?> 
        <?php endforeach; ?> 
        
        <!-- Next page link -->
        <?php if (isset($this->next)): ?> 
        <li>
            <a href="<?php echo $this->url(array_merge(array('page' => $this->next),$arr)); ?>" aria-label="Next">
                <span aria-hidden="true">&raquo;</span>
            </a>
        </li>
        <?php else: ?> 
        <li class="disabled">
            <a aria-label="Next">
                <span aria-hidden="true">&raquo;</span>
            </a>
        </li>
        <?php endif; ?>
    </ul>
</nav>
<?php endif; ?>
